<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">  
  <title>鲜花列表</title>
 </head>
 <body>
 <form method="post" action="flowerlist.php" enctype="multipart/form-data" >
 <table align="center" width="80%" border=1>  
 <center><h3>鲜花列表</h3></center> 
 <tr>
   <th>编号</th>
   <th>鲜花标题</th>   
   <th>鲜花图片文件名</th>
   <th>鲜花产地</th>
   <th>鲜花简介</th>
   <th>添加鲜花的时间</th>
   <th>点击量</th>
   <th>操作</th> 
 </tr>
 <?php
  require_once('system/dbconn.php');
   require_once('system/myfun.php');
  connect();
  $sql = "select * from flower "; 
  $result = fetch_array($sql); 
  if(is_array($result) && !empty($result)){  
 foreach($result as $row) 
  {
   echo '<tr>';
   echo '<td>'.$row['GL_id'].'</td>';
   echo '<td><a href="detail.php?id='.$row['GL_id'].'">'.$row['GL_title'].'</a></td>';
   echo '<td>'.$row['GL_pic'].'</td>';
   echo '<td>'.$row['GL_place'].'</td>';
   echo '<td>'.$row['GL_intro'].'</td>';
   echo '<td>'.$row['GL_adddate'].'</td>';
   echo '<td>'.$row['GL_hint'].'</td>';
   echo '<td><a href="addflower.php?id='.$row['GL_id'].' ">修改</a> | 
             <a href="delflower.php?id='.$row['GL_id'].'" >删除</a></td>';
   echo '</tr>';  
  } 
}
?>
 </table>
 <center><h4>没有想要的信息？试试搜索吧!  <a href="search.php?">搜索</a></h4></center>
 </html>




